<?php

define('AGI', 1);

define('START_TIME', microtime(1));

define('START_MEMORY', memory_get_usage());

define('ROOT_PATH', realpath(dirname(__FILE)));

define('APPLICATION_PATH', ROOT_PATH . '/application');

define('CONFIG_PATH', ROOT_PATH . '/application/config');

define('MODULE_PATH', ROOT_PATH . '/application/module');

define('TEMP_PATH', ROOT_PATH . '/temporary');

define('SYSTEM_PATH', ROOT_PATH . '/system');

set_include_path(implode(PATH_SEPARATOR, array(
    MODULE_PATH,
    SYSTEM_PATH,
    LIBRARY_PATH,
    get_include_path()
)));

require_once 'system/agi.php';

Agi::bootstrap();

ini_set('display_startup_errors',1);
ini_set('display_errors',1);
ini_set('error_reporting',E_ALL);
